*** Settings ***
Documentation       通过ipmi接口BIOS上报可信模块信息
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Reporting_Trusted_Modules

*** Variables ***
${input}                    raw 0x30 0x92 0xdb 0x07 0x00 0x50 0x04 0x54 0x50 0x43 0x4d 0x07 0x31 0x2e 0x32 0x2e 0x31 0x2e 0x33 0x07 0x31 0x2e 0x32 0x2e 0x31 0x2e 0x33 0x01 0x07 0x31 0x2e 0x32 0x2e 0x31 0x2e 0x33
${expected_rc}              ${0}
${expected_output}          db 07 00


*** Test Cases ***
Get IPMI Reporting Trusted Modules
    [Documentation]    带认证的IPMI的BIOS上报可信模块信息
    [Tags]  Get_Reporting_Trusted_Modules_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


